package com.shuozi.keyboardpopup;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.PopupWindow;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity  extends AppCompatActivity {
    KeyboardWithCommit keyboardPopupWindow ;
    Context context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.acivity_base);

        context =this;
        Button button=(Button) findViewById(R.id.button2);

        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Toast.makeText(context,"啊大大",Toast.LENGTH_SHORT).show();

                Intent intent=new Intent(BaseActivity.this,MainActivity.class);

                startActivity(intent);

            }
        });



    }


}
